package com.foreverwin.jzymes.production.gr.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.foreverwin.jzymes.production.gr.mapper.GoodsReceiptLogMapper;
import com.foreverwin.jzymes.production.gr.domain.GoodsReceiptLog;
import com.foreverwin.jzymes.production.gr.service.IGoodsReceiptLogService;

/**
 * 成品入库单记录 服务层实现
 * 
 * @author ervin
 * @date 2019-08-06
 */
@Service
public class GoodsReceiptLogServiceImpl implements IGoodsReceiptLogService
{
	@Autowired
	private GoodsReceiptLogMapper goodsReceiptLogMapper;

	/**
     * 查询成品入库单记录信息
     * 
     * @param handle 成品入库单记录ID
     * @return 成品入库单记录信息
     */
    @Override
	public GoodsReceiptLog selectGoodsReceiptLogById(String handle)
	{
	    return goodsReceiptLogMapper.selectGoodsReceiptLogById(handle);
	}
	
	/**
     * 查询成品入库单记录列表
     * 
     * @param goodsReceiptLog 成品入库单记录信息
     * @return 成品入库单记录集合
     */
	@Override
	public List<GoodsReceiptLog> selectGoodsReceiptLogList(GoodsReceiptLog goodsReceiptLog)
	{
	    return goodsReceiptLogMapper.selectGoodsReceiptLogList(goodsReceiptLog);
	}
	
    /**
     * 新增成品入库单记录
     * 
     * @param goodsReceiptLog 成品入库单记录信息
     * @return 结果
     */
	@Override
	public int insertGoodsReceiptLog(GoodsReceiptLog goodsReceiptLog)
	{
	    return goodsReceiptLogMapper.insertGoodsReceiptLog(goodsReceiptLog);
	}
	
	/**
     * 修改成品入库单记录
     * 
     * @param goodsReceiptLog 成品入库单记录信息
     * @return 结果
     */
	@Override
	public int updateGoodsReceiptLog(GoodsReceiptLog goodsReceiptLog)
	{
	    return goodsReceiptLogMapper.updateGoodsReceiptLog(goodsReceiptLog);
	}

	/**
     * 删除成品入库单记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteGoodsReceiptLogByIds(String ids)
	{
		return goodsReceiptLogMapper.deleteGoodsReceiptLogByIds(ids.split(","));
	}
	
}
